From 24399f31759ba31fa3935beac918accefd223793 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 5 Apr 2006 19:54:42 +0000 Subject: [PATCH] Fix big huge PHP warning error on every page when allow_call_time_pass_reference is off --- includes/Parser.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 632b251c30..1775eaddd7 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2613,8 +2613,7 @@ class Parser if ( $colonPos !== false ) { $function = strtolower( substr( $part1, 0, $colonPos ) ); if ( isset( $this->mFunctionHooks[$function] ) ) { - $funcArgs = $args; - array_unshift( $funcArgs, &$this, substr( $part1, $colonPos + 1 ) ); + $funcArgs = array_merge( array( &$this, substr( $part1, $colonPos + 1 ) ), $args ); $result = call_user_func_array( $this->mFunctionHooks[$function], $funcArgs ); $found = true; if ( is_array( $result ) ) { -- 2.20.1